<template>
    <div class="box">
        <header class="tou">
            <van-search show-action placeholder="请输入搜索关键词">
                <template #left>
                    <van-icon name="apps-o" style="font-size: 20px;" />
                </template>
                <template #action>
                    <van-icon name="contact-o" style="font-size: 20px;" />
                </template>
            </van-search>
        </header>
        <main class="zhong">
            <van-swipe :autoplay="3000" lazy-render>
                <van-swipe-item v-for="image in images" :key="image">
                    <img :src="image" style="width: 100%;height: 200px;"/>
                </van-swipe-item>
            </van-swipe>
            <ProList/>
        </main>
    </div>
</template>
<script setup>
import ProList from './components/ProList.vue';
const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
];
</script>